package com.bieyang.anjia.utils;

import org.opencv.core.Scalar;

/*************************
 * 文件信息***************************** 模块名：AnJia 文件名：Constant.java 创建者：刘松
 * 创建日期：2014-12-25 功能描述：
 ***********************************************************/
public class Constants {

	public static final String APP_ID = "wxe1a54cdf9cab426d";

	// public static final String SERVER_URL = "http://192.168.1.101:8080";
	 public static final String SERVER_URL = "http://service.anjia360.cn";
//	public static final String SERVER_URL = "http://test.service.anjia360.cn";
	// 资讯访问连接
	// public static final String NEWS_URL = "http://test.anjia360.cn";

	public static String ConfigXmlname = "//data//data//com.anjia//ConfigXml.xml";

	public static final String ACTION_ALIVE = "/user/session.json";

	public static final String ACTION_REGISTER_CODE = "/auth/sendCode.json";

	public static final String ACTION_REGISTER = "/auth/register.json";

	public static final String ACTION_LOGIN = "/auth/userLogin.json";

	public static final String ACTION_LOGOUT = "/auth/userLogout.json";
	public static final String ACTION_ADD_ADDRESS = "/user/address/addMemberAddress.json";
	public static final String ACTION_UPDATE_ADDRESS = "/user/address/updateMemberAddress.json";

	public static final String ACTION_ALL_SUB = "/user/divice/selectInforAll.json";
	public static final String ACTION_DELETE_SUB = "/user/divice/delectDevice.json";
	public static final String ACTION_UPDATE_SUB_NAME = "/user/divice/updateName.json";
	public static final String ACTION_INSERT_DIVICE_STATES = "/user/divice/deviceStatus.json";
	public static final String ACTION_QUERY_DIVICE_STATES = "/user/divice/deviceSelect.json";
	public static final String ACTION_INSERT_ALARM = "/user/divice/deviceRecordAdd.json";
	public static final String ACTION_QUERY_ALARM = "/user/divice/deviceRecordSelect.json";
	public static final String ACTION_QUERY_ALARMALL = "/user/divice/deviceRecordSelectHost.json";

	public static final String ACTION_INSERT_DIVICE_SET = "/user/divice/updateCollectionTerminal.json";
	public static final String ACTION_QUERY_DIVICE_SET = "/user/divice/selectCollectionTerminal.json";
	public static final String ACTION_QUERY_USER_INFO = "/user/member/userInformation.json";
	public static final String ACTION_UPDATE_USER_INFO = "/user/member/updateUserInformation.json";

	public static final String ACTION_UPDATE_MANAGEMENT = "/user/member/updateManagement.json";
	public static final String ACTION_SELECT_MESSAGE_ALERT = "/user/member/selectMessageAlerts.json";
	public static final String ACTION_SELECT_BOTH = "/user/member/selectBoth.json";
	public static final String ACTION_SELECT_ADDRESS = "/user/address/selectAdderss.json";
	public static final String ACTION_GET_QINIU_KEY = "/user/qiniu/key.json";
	public static final String QINIU_GET_TOKEN = "/user/qiniu/token.json";
	public static final String ACTION_UP = "/user/divice/release.json";
	public static final String ACTION_DOWN = "/user/divice/press.json";
	public static final String ADD_DEVICE = "/user/divice/registerDevice.json";// 添加设备

	public static final String BACK_SUGGESTION = "/user/feedback/commentsSuggestion.json";// 意见反馈

	public static final String UPDATE_PASSWORD_CODE = "/auth/updateSendCode.json";// 获取修改密码验证码
	public static final String YANZHENG_CODE = "/auth/verification.json";// 下一步，修改密码验证码验证
	public static final String ACTION_UPDATE_PASSWORD = "/auth/userPasswordReset.json";// 确认密码，修改密码
	public static final String ACTION_QINIU_SAVE_FILE = "/user/qiniu/saveFile.json";

	public static final String ACTION_QINIU = "/user/qiniu/selectById.json";

	public static final String GET_NEWS_MORE = "/news/news.json";// get more
																	// news
	public static final String GET_NEWS = "/news/news.json";

	public static final String GET_VERSION_INFO = "/auth/versionDownload.json";
	public static final String GET_ALARM_URL = "/user/qiniu/selectById.json";

	public static final String GET_HELP = "/news/help.json";
	public static final String ALARM_MUSIC_URL = "/auth/bell/selectBellAlone.json";
	public static final String ALARM_MUSIC = "/auth/bell/selectBellAll.json";
	public static final String SHARE_STATEMENTS = "/auth/shareLanguage.json";
	public static final String GET_BANNER = "/banner/selectBannerList.json";

	/*
	 * login
	 */
	public static final int LOGIN_SUCESS = 01;
	public static final int LOGIN_FAIL = 02;

	public static final int LOGOUT_SUCESS = 03;
	public static final int LOGOUT_FAIL = 04;

	public static final int REGISTER_SUCESS = 05;
	public static final int REGISTER_FAIL = 06;

	/*
	 * 
	 * device
	 */
	public static final int DEVICE_DEL_SUCESS = 07;
	public static final int DEVICE_DEL_FAIL = 8;

	public static final int ADD_DEVICE_SUCESS = 9;
	public static final int ADD_DEVICE_FAIL = 10;

	public static final int GET_DEVICE_SUCESS = 11;
	public static final int GET_DEVICE_FAIL = 12;

	public static final int GET_NEWS_SUCESS = 13;
	public static final int GET_NEWS_FAIL = 14;
	public static final int QUERY_SUB_SET_SUCCESS = 15;
	public static final int QUERY_SUB_SET_FAILED = 16;
	public static final int QUERY_ALARM_SUCCESS = 17;
	public static final int QUERY_ALARM_FAILED = 18;
	public static final int QUERY_ALARM_ALL_SUCCESS = 23;
	public static final int QUERY_ALARM_ALL_FAILED = 24;
	public static final int UPDATE_SUBNAME_SUCCESS = 19;
	public static final int UPDATE_SUBNAME_FAILED = 20;
	public static final int SET_SUB_SET_SUCCESS = 25;
	public static final int SET_SUB_SET_FAILED = 26;

	public static final int GET_VERSION_OK = 29;
	public static final int GET_URL_SUCCESS = 27;
	public static final int GET_URL_FAILED = 28;
	/*
	 * left menu
	 */
	public static final int COMMIT_SUGGESTION_SUCESS = 51;
	public static final int COMMIT_SUGGESTION_FAIL = 52;
	public static final int GET_TOKEN_SUCEESS = 30;
	public static final int GET_TOKEN_FAILED = 31;
	/*
	 * login
	 */
	public static final int LOGIN_NO_USER = 53; // no user
	public static final int LOGIN_WRONG_PASSWORD = 54;// wrong password
	public static final int LOGIN_SUB_NO = 55;// 该忠机已被其他账号绑定
	public static final int REGISTER_EXIT_USER = 56; // no user

	public static final int GET_FINDPASSCODE_OK = 57; // no user
	public static final int GET_FINDPASSCODE_FAIL = 58;

	public static final int MODIFY_PASSWORD_OK = 61;
	public static final int MODIFY_PASSWORD_FAIL = 62;

	public static final int GET_HELP_SUCESS = 63; // get help
	public static final int GET_HELP_FAIL = 64;

	public static final int YANZHENG_FAIL = 65;
	public static final int YANZHENG_OK = 66;
	public static final int CODE_ERROR = 67;
	public static final int CODE_SUCCESS = 68;
	public static final int CODE_FAIL = 69;
	public static final int GET_ALARM_MUSIC_SUCCESS = 70;
	public static final int GET_ALARM_MUSIC_FAIL = 71;
	public static final int GET_ALARM_MUSIC_URL_SUCCESS = 71;
	public static final int GET_ALARM_MUSIC_URL_FAIL = 72;
	public static final int GET_BANNER_SUCCESS = 73;
	public static final int GET_BANNER_FAIL = 74;
	public static final int GET_SHARED_STATEMENTS_SUCCESS = 75;

	/**
	 * 图片文件后缀
	 */
	public static final String PICTURE_SUFFIX = ".anjiap";
	/**
	 * 视频文件后缀
	 */
	public static final String VIDEO_SUFFIX = ".anjiav";
	public static final String AUDIO_RECORDER_FOLDER = "AnJia";
	public static final int REQUEST_CODE = 101;
	public static final int SLEEP_LENGTH = 12 * 1000;
	public static final long CLEAN_INTERVAL_MILLIS = 30 * 60 * 1000,
			FLASH_INTERVAL_MILLIS = 2 * 60 * 1000,// 闪光灯开启间隔
			ALARM_DIVIDE_MILLIS = 1 * 60 * 1000;// 报警间隔
	public static final Scalar OBJ_RECT_COLOR = new Scalar(0, 255, 0, 255);
	public static final String TAG = "Opencv:LoadObj";
	public final static String UPDATE_NAME = "com.bieyang.anjia.updateName";// 更改名称
	public final static String CAMERA_FLASH_MODE = "com.bieyang.anjia.cameraFlashMode";// 闪光灯
	public final static String UPDATE_SETTING = "com.bieyang.anjia.updateSetting";// 更改设置
	public final static String DELETE_SUB = "com.bieyang.anjia.deleteSub";// 更改设置

	public final static String NEW_NEWS = "com.bieyang.anjia.newNews";// 新消息

	public final static String LOGIN_OTHER = "com.bieyang.anjia.acMain";// 账号被登录

	// SubSet常量

	public final static String AlARM_PLAY_VOICE = "SubPlayVoice",
			AlARM_METHODS = "alarmMethods", ALARM_MEASURES = "alarmMeasures",
			DAY_MODE_START_TIME = "dayStartTime",
			DAY_MODE_STOP_TIME = "dayStopTime",
			NIGHT_MODE_START_TIME = "nightStartTime",
			NIGHT_MODE_STOP_TIME = "nightStopTime", BODY_REC = "BodyRec",
			DYNAMIC_DETECTION = "dynamicDetection", FLASH_LIGHT = "flashLight",
			WEEK_DAY = "weekDay", DIVICE_NAME = "diviceName",
			SUB_ACTION_ALARM_ON = "alarmOn";
	public static final int RESULT_CODE = 201, RECORD_VIDEO_CODE = 1112;
	public static final int DAY_START_HOUR = 6, DAY_START_MINUTE = 0,
			DAY_STOP_HOUR = 23, DAY_STOP_MINUTE = 59, NIGHT_START_HOUR = 0,
			NIGHT_START_MINUTE = 0, NIGHT_STOP_HOUR = 5,
			NIGHT_STOP_MINUTE = 59;
	// SubVoiceDialog常量
	public static final String SUB_NAME = "name", SUB_DESC = "desc",
			SUB_CHECK = "check", VIDEO_PATH = "path", ANJIA_SHARE = "share",
			MODE_CODE = "modeCode", BUNNER_IMG_URL = "bunnerImg",
			BUNNER_NEWS_URL = "bunnerNews", BUNNER_TIME = "bunnerTime";
	public final static String ANXIN_NOTIFY = "com.bieyang.anjia.anxinNotify";// 安信通知

}
